package com.jinly.ryder.common.auth;

import com.jinly.ryder.common.auth.model.TokenInfo;

public class LoginContent {

    public static ThreadLocal<TokenInfo> threadLocal = new ThreadLocal();

    public static void setContent(TokenInfo tokenInfo) {
        threadLocal.set(tokenInfo);
    }

    public static Long getUserId() {
        return threadLocal.get().getUserId();
    }

    public static String getSessionId() {
        return threadLocal.get().getSessionId();
    }
}
